package com.jyxd.web.data.czform;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "table_crrt_nurse")
@Data
@ApiModel("crrt护理表单信息")
public class CRRTNurse {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * CRRT前评估信息表id
     */
    @Column(name = "crrt_assess_id")
    private String crrtAssessId;

    @ApiModelProperty("开始时间（或者数据时间）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "data_time")
    private Date dataTime;

    @ApiModelProperty("结束时间")
    @Column(name = "end_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty("抗凝方式")
    @Column(name = "anti_freezing")
    private String antiFreezing;

    @ApiModelProperty("抗凝剂量")
    @Column(name = "anticoagulant")
    private String anticoagulant;

    @ApiModelProperty("神志")
    @Column(name = "mind")
    private String mind;

    @ApiModelProperty("血压（mmHg）")
    @Column(name = "blood")
    private String blood;

    @ApiModelProperty("心率 次/分")
    @Column(name = "hr")
    private String hr;

    @ApiModelProperty("呼吸 次/分")
    @Column(name = "resp")
    private String resp;

    @ApiModelProperty("血氧饱和度")
    @Column(name = "spo2")
    private String spo2;

    @ApiModelProperty("输入压")
    @Column(name = "input_voltage")
    private String inputVoltage;

    @ApiModelProperty("跨膜压")
    @Column(name = "transmembrane_pressure")
    private String transmembranePressure;

    @ApiModelProperty("回输压")
    @Column(name = "back_pressure")
    private String backPressure;

    @ApiModelProperty("超滤率 ml/h")
    @Column(name = "ultrafiltration_rate")
    private String ultrafiltrationRate;

    @ApiModelProperty("血流量 ml/min")
    @Column(name = "blood_flow")
    private String bloodFlow;

    @ApiModelProperty("置换速度 L/h")
    @Column(name = "replacement_rate")
    private String replacementRate;

    @ApiModelProperty("透析速度 L/h")
    @Column(name = "dialysis_speed")
    private String dialysisSpeed;

    @ApiModelProperty("净超滤量 ml")
    @Column(name = "ultrafiltration_quantity")
    private String ultrafiltrationQuantity;

    @ApiModelProperty("签名")
    @Column(name = "signature")
    private String signature;

    @ApiModelProperty("患者id")
    @Column(name = "patient_id")
    private String patientId;

    @ApiModelProperty("类型（crrt表单二或者三）")
    @Column(name = "type")
    private String type;

    /**
     * 病情、护理措施及效果
     */
    @Column(name = "content",length = 1024)
    private String content;

    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("状态")
    @Column(name = "status")
    private String status;

    @ApiModelProperty("数据来源 0:人工录入 1系统自动生成")
    @Column(name = "data_source")
    private int dataSource;
}
